package sniff.pack;

public class MyHTTPRequestPack extends MyHTTPPacket {
	protected String method;
	protected String url;
	public MyHTTPRequestPack() {
		
	}
	public MyHTTPRequestPack(String headLine,String httpVersion,String method, String url) {
		super(headLine, httpVersion);
		this.method = method;
		this.url = url;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("Method:"+this.method+"\n");
		sb.append("URL:"+this.url+"\n");
		sb.append("Http Version:"+this.httpVersion+"\n");
		sb.append(this.headLine+"\n");
		return sb.toString();
	}
}
